package com.hightrast.service.mapper;

import com.hightrast.service.api.entity.RastUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色关联表 Mapper 接口
 * </p>
 *
 * @author hx
 * @since 2025-01-11
 */

public interface RastUserRoleMapper extends BaseMapper<RastUserRole> {

    /**
     * 获取用户下角色
     * @param userId
     * @return
     */
    List<RastUserRole> selectUserRoleByUserId(@Param("userId") Long userId);
}
